#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../czbgradefive-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy czbgradefive-gateway "
cp ../czbgradefive-gateway/target/czbgradefive-gateway.jar ./czbgradefive/gateway/jar

echo "begin copy czbgradefive-auth "
cp ../czbgradefive-auth/target/czbgradefive-auth.jar ./czbgradefive/auth/jar

echo "begin copy czbgradefive-visual "
cp ../czbgradefive-visual/czbgradefive-monitor/target/czbgradefive-visual-monitor.jar  ./czbgradefive/visual/monitor/jar

echo "begin copy czbgradefive-modules-system "
cp ../czbgradefive-modules/czbgradefive-system/target/czbgradefive-modules-system.jar ./czbgradefive/modules/system/jar

echo "begin copy czbgradefive-modules-file "
cp ../czbgradefive-modules/czbgradefive-file/target/czbgradefive-modules-file.jar ./czbgradefive/modules/file/jar

echo "begin copy czbgradefive-modules-job "
cp ../czbgradefive-modules/czbgradefive-job/target/czbgradefive-modules-job.jar ./czbgradefive/modules/job/jar

echo "begin copy czbgradefive-modules-gen "
cp ../czbgradefive-modules/czbgradefive-gen/target/czbgradefive-modules-gen.jar ./czbgradefive/modules/gen/jar

